﻿using DevExpress.ExpressApp.DC;
using DevExpress.ExpressApp.Model;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BatchCreateTestData.Module.BusinessObjects {
  [DefaultClassOptions]
  [XafDisplayName("学生")]
  public class TStudentBo : BaseObject {
    public TStudentBo(Session session) : base(session) { }

    private string fName;

    // 格式化显示
    [ModelDefault("DisplayFormat", "A-{0}")]
    [XafDisplayName("姓名")]
    public string Name {
      get => fName;
      set => SetPropertyValue(nameof(Name), ref fName, value);
    }

  }
}
